首页
<template>
    <div class="main">
        <el-card class="box-card">
         <el-row> 
             <el-col :span="10">当前系统版本</el-col>
             <el-col :span="1">:</el-col>
             <el-col :span="10">{{updata.now_sys_vision}}</el-col>
         </el-row>
         <el-row> 
             <el-col :span="10">服务程序版本</el-col>
             <el-col :span="1">:</el-col>
             <el-col :span="10">{{updata.serve_vision}}</el-col>
         </el-row>
         <el-row> 
             <el-col :span="10">web服务器版本</el-col>
             <el-col :span="1">:</el-col>
             <el-col :span="10">{{updata.web_vision}}</el-col>
         </el-row>
         <div class="check">
            <el-button type="primary" plain @click="check">检查更新</el-button>
         </div>

        </el-card>
</div>
</template>

<script>
import axios from '../plugins/axios'  //在哪里用就在哪里引入
// require('@/mock/updata.js')
export default {
    data(){
        return{
           updata:{},
        }
    },
    methods: {
      load () {
        
      },
      check(){
          alert("已经是最新版本了哦！");
      }
    },
     created:function(){
        axios.get('/action/updata')
        .then(response=>{
           // console.log(response);
            this.updata=response.data.updata;
            //console.log(this.system_info);
        })
        .catch(error=>{
           console.log(error);
        //    alert('网络错误');
        })
},
}
</script>

<style scoped>
.main{
    
}
.el-card{
    position:absolute;
    left: 14.5%;
    width: 82%;
    top:14.97%;
    padding: 3px;
    margin: 0px;
    height: 81%;
    font-size: 20px;
}
.el-row{
    position: relative;
    left: 15%;
    width: 70%;
    padding: 2px;
    margin: 20px;
    border: 1px solid rgb(154, 154, 223);
    font-size: 25px;
}
.check{
    position:absolute;
    top: 70%;
    left: 80%;
}

</style>
